Viewing log files

About this task

To view the logs in either a Docker™ or Kubernetes™ environment, use commands associated with the environment. In either environment you need to know the names of the HCL Accelerate containers.
  • accelerate-consumer
  • accelerate-ui

Viewing logs in a Kubernetes environment

About this task

To view the logs in a Kubernetes environment, you need to know the pod name that the HCL Accelerate containers are located in. A pod is a collection of one or more containers that are deployed together, and are started, stopped, and replicated as a group.

The default log level is error. The level of logging can be changed on the log.level configuration property. Other logging levels are: all, debug, info, warn, error, and fatal. Logging can also be turned off on the configuration property.

Procedure

  1. From a command line window, run the following command to obtain the pod names containing the HCL Accelerate containers.
    kubectl get pods
  2. Run the following command to view the logs.

    kubectl logs pod_name

Viewing logs in a Docker Compose environment

About this task

To view the logs in a Docker container, you need to know the container ID for the HCL Accelerate containers.

Procedure

  1. From a command line window, run the following command to list containers.
    docker ps -a
    The command output displays the containers and its ID.
  2. To view the logs, use the docker logs command.
    Run a separate command for each container.

    docker logs accelerate_userinterface_container_id

    docker logs accelerate_consumercontainer_id